﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Nvigorate.Common
{
    public class PathHelper
    {
        public static string AssemblyBase
        {
            get { return AppDomain.CurrentDomain.BaseDirectory; }
        }

        public static string GetPathRelativeToBase(string relativePath)
        {
            return Path.Combine(AssemblyBase, relativePath);
        }

        public static string GetFilePathRelativeToBase(string relativePath, string fileName)
        {
            return Path.Combine(Path.Combine(AssemblyBase, relativePath), fileName);
        }
    }
}
